package com.hong.chapter2;

/**
 * Created by hong on 2018/5/27.
 */
public class TicketWindowRunnable implements  Runnable {

    private final int MAX =50;
    private static int index = 1;


    public void run() {
        while (index<MAX){
            System.out.println(Thread.currentThread().getName()+"窗口"+(index++));
        }
        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
